﻿using System;


namespace epicenter2010
{
	/// <summary>
	/// bstack @ 05/06/2010
	/// Customer entity, immutable type - anaemic
	/// </summary>
	public class Customer
	{
		/// <summary>
		/// Id
		/// </summary>
		public readonly int Id;

		/// <summary>
		/// Name
		/// </summary>
		public readonly string Name;

		/// <summary>
		/// Type
		/// </summary>
		public string Type;

		/// <summary>
		/// Address 1
		/// </summary>
		public readonly string Address1;

		/// <summary>
		/// Address 2
		/// </summary>
		public readonly string Address2;

		/// <summary>
		/// State
		/// </summary>
		public readonly string State;

		/// <summary>
		/// Email
		/// </summary>
		public readonly string Email;

		/// <summary>
		/// Phone
		/// </summary>
		public readonly long Phone;


		/// <summary>
		/// Ctor
		/// </summary>
		/// <param name="Id">Id</param>
		/// <param name="name">Name</param>
		/// <param name="type">Customer type</param>
		/// <param name="address1">Address 1</param>
		/// <param name="address2">Address 2</param>
		/// <param name="state">State</param>
		/// <param name="email">Email</param>
		/// <param name="phone">Phone</param>
		public Customer(
			int Id,
			string name,
			string type,
			string address1,
			string address2,
			string state,
			string email,
			long phone)
		{
			this.Id = Id;
			this.Name = name;
			this.Type = type;
			this.Address1 = address1;
			this.Address2 = address2;
			this.State = state;
			this.Email = email;
			this.Phone = phone;
		}
	}
}
